<template>
	<div class="subpage">
		<h2>未支付</h2>
		<order-list-cell data="{}"></order-list-cell>
		<order-list-cell :data="item" v-for="(item,idx) in list" :key="idx"></order-list-cell>
	</div>
</template>

<script>
	import {
		orderList
	} from "../../api/workbench.js"
	export default {
		name: "order-list-w-pay",
		data() {
			return {
				pageNum: 1,
				pageSize: 30,
				list: []
			};
		},
		mounted() {
			this.netOrderList()
		},
		methods: {
			netOrderList() {
				let fi = {
					pageNum: this.pageNum,
					pageSize: this.pageSize
				};
				let self = this;
				orderList(fi).then(res => {
					let {
						data
					} = res;
					let {
						record
					} = data;
					self.list = record;
					console.warn(JSON.stringify(res))
				}).catch(e => {
					console.error(e)
				})
			}

		}
	}
</script>

<style scoped>
	.subpage {}
</style>
